package com.discovery.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author xuebinlu
 * @Date 2018/5/28 19:57
 * @Version 1.0
 * @Description 首页controller
 **/
@Controller
@RequestMapping("/user")
public class IndexController {

    @RequestMapping(value = "/login", method = RequestMethod.GET)
    public String login_view() {
        return "login";
    }

    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public String index_view() {
        return "index";
    }
}
